.class Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;
.super Lcom/glympse/android/glympse/Glympse$GlympseView;
.source "ViewSendGlympse.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewSendGlympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyGlympseView"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewSendGlympse;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympse/ViewSendGlympse;)V
    .locals 0
    .parameter

    .prologue
    .line 154
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-direct {p0}, Lcom/glympse/android/glympse/Glympse$GlympseView;-><init>()V

    return-void
.end method


# virtual methods
.method public CreateView()V
    .locals 1

    .prologue
    .line 159
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$0(Lcom/glympse/android/glympse/ViewSendGlympse;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 161
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->Clear()V

    .line 164
    :cond_0
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->CreateControls()V

    .line 165
    return-void
.end method

.method public DoUpdate(I)V
    .locals 3
    .parameter "nUpdateFlags"

    .prologue
    .line 245
    and-int/lit16 v1, p1, 0x200

    if-nez v1, :cond_0

    .line 254
    :goto_0
    return-void

    .line 251
    :cond_0
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/UserList;->GetSelf()Lcom/glympse/platform/common/User;

    move-result-object v1

    invoke-virtual {v1}, Lcom/glympse/platform/common/User;->GetLocPoint()Lcom/glympse/platform/common/LocPoint;

    move-result-object v0

    .line 252
    .local v0, oLocPoint:Lcom/glympse/platform/common/LocPoint;
    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v1, v1, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    iget-object v1, v1, Lcom/glympse/android/glympse/MapControl;->m_oMapController:Lcom/google/android/maps/MapController;

    invoke-static {v0}, Lcom/glympse/platform/LocManager;->LocPointToGeoPoint(Lcom/glympse/platform/common/LocPoint;)Lcom/google/android/maps/GeoPoint;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 253
    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v1, v1, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/MapControl;->invalidate()V

    goto :goto_0
.end method

.method public OnGainFocus(Lcom/glympse/android/glympse/Glympse$EViews;)V
    .locals 5
    .parameter "eViewPrevious"

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 170
    invoke-super {p0, p1}, Lcom/glympse/android/glympse/Glympse$GlympseView;->OnGainFocus(Lcom/glympse/android/glympse/Glympse$EViews;)V

    .line 172
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v1, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    const v2, 0x7f0c001f

    invoke-virtual {v0, v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    sget-object v2, Lcom/glympse/android/glympse/MapControl$EViewMode;->SendGlympse:Lcom/glympse/android/glympse/MapControl$EViewMode;

    invoke-virtual {v1, v0, v2}, Lcom/glympse/android/glympse/MapControl;->MapPlease(Landroid/view/ViewGroup;Lcom/glympse/android/glympse/MapControl$EViewMode;)V

    .line 174
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    iget-object v0, v0, Lcom/glympse/android/glympse/MapControl;->m_oMapController:Lcom/google/android/maps/MapController;

    .line 175
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/UserList;->GetSelf()Lcom/glympse/platform/common/User;

    move-result-object v1

    invoke-virtual {v1}, Lcom/glympse/platform/common/User;->GetLocPoint()Lcom/glympse/platform/common/LocPoint;

    move-result-object v1

    invoke-static {v1}, Lcom/glympse/platform/LocManager;->LocPointToGeoPoint(Lcom/glympse/platform/common/LocPoint;)Lcom/google/android/maps/GeoPoint;

    move-result-object v1

    .line 174
    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 176
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v0, v3}, Lcom/glympse/android/glympse/MapControl;->SetPanning(Z)V

    .line 178
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v0, v3}, Lcom/glympse/android/glympse/MapControl;->SetSatellite(Z)Z

    .line 179
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v0, v3}, Lcom/glympse/android/glympse/MapControl;->SetTraffic(Z)Z

    .line 180
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    iget-object v0, v0, Lcom/glympse/android/glympse/MapControl;->m_oMapController:Lcom/google/android/maps/MapController;

    const/16 v1, 0xf

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 181
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    sget-object v1, Lcom/glympse/android/glympse/MapControl$ELabelMode;->None:Lcom/glympse/android/glympse/MapControl$ELabelMode;

    iput-object v1, v0, Lcom/glympse/android/glympse/MapControl;->m_eLabelMode:Lcom/glympse/android/glympse/MapControl$ELabelMode;

    .line 184
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v0, v3}, Lcom/glympse/android/glympse/MapControl;->setClickable(Z)V

    .line 185
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v0, v3}, Lcom/glympse/android/glympse/MapControl;->setFocusable(Z)V

    .line 187
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    new-instance v1, Lcom/glympse/android/glympse/ViewSendGlympse$OnTouchMap;

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-direct {v1, v2}, Lcom/glympse/android/glympse/ViewSendGlympse$OnTouchMap;-><init>(Lcom/glympse/android/glympse/ViewSendGlympse;)V

    invoke-virtual {v0, v1}, Lcom/glympse/android/glympse/MapControl;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 190
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Search:Lcom/glympse/android/glympse/Glympse$EViews;

    if-eq v0, p1, :cond_0

    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Destination:Lcom/glympse/android/glympse/Glympse$EViews;

    if-ne v0, p1, :cond_2

    .line 193
    :cond_0
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$1(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/ImageButton;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$1(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/ImageButton;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ImageButton;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 195
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$1(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/ImageButton;

    move-result-object v0

    invoke-static {v0, v4}, Lcom/glympse/android/glympse/Glympse;->SetFocusDelayed(Landroid/view/View;Z)V

    .line 221
    :goto_0
    return-void

    .line 201
    :cond_1
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$2(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/Button;

    move-result-object v0

    invoke-static {v0, v4}, Lcom/glympse/android/glympse/Glympse;->SetFocusDelayed(Landroid/view/View;Z)V

    goto :goto_0

    .line 208
    :cond_2
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$1(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/ImageButton;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$1(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/ImageButton;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ImageButton;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 210
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$1(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/ImageButton;

    move-result-object v0

    invoke-static {v0, v4}, Lcom/glympse/android/glympse/Glympse;->SetFocusDelayed(Landroid/view/View;Z)V

    goto :goto_0

    .line 219
    :cond_3
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$3(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/AutoCompleteTextView;

    move-result-object v0

    invoke-static {v0, v4}, Lcom/glympse/android/glympse/Glympse;->SetFocusDelayed(Landroid/view/View;Z)V

    goto :goto_0
.end method

.method public OnLoseFocus(Lcom/glympse/android/glympse/Glympse$EViews;)Z
    .locals 2
    .parameter "eViewNext"

    .prologue
    .line 228
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Map:Lcom/glympse/android/glympse/Glympse$EViews;

    if-ne v0, p1, :cond_1

    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->IsFavorite()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->IsModify()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 232
    :cond_0
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$4(Lcom/glympse/android/glympse/ViewSendGlympse;Z)V

    .line 235
    :cond_1
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/glympse/android/glympse/MapControl;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 238
    invoke-super {p0, p1}, Lcom/glympse/android/glympse/Glympse$GlympseView;->OnLoseFocus(Lcom/glympse/android/glympse/Glympse$EViews;)Z

    move-result v0

    return v0
.end method
